package com.jiunuan.live.core.server.handler;

import com.jiunuan.live.core.server.common.ImMsg;
import io.netty.channel.ChannelHandlerContext;

/**
 * @Author: JiuNuan
 * @CreateTime: 2024-08-10 21:54
 * @Description: 消息工厂,用于消息处理和分发
 */

public interface ImHandlerFactory {
    /**
     * 按照imMsg的code进行消息处理
     * @param ctx
     * @param imMsg
     */
    void doMsgHandler(ChannelHandlerContext ctx,ImMsg imMsg);
}
